package com.jiaming.restaurant.api.foodtable.bean.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

@Data
public class FoodTable implements Serializable {
    /**
     *
     */
    private Integer id;

    /**
     * 最大就餐人数
     */
    private Integer num;

    /**
     * 餐桌编号
     */
    private String code;

    /**
     * 餐馆ID
     */
    @JsonProperty(value = "restaurant_id")
    private Integer restaurantId;

    /**
     * 0:空闲中,1:使用中
     */
    private Integer status;

    /**
     *
     */
    @JsonProperty(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     *
     */
    @JsonProperty(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    private static final long serialVersionUID = 1L;
}

